<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{% block title %}Clanty{% endblock %}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAL2S0I9Ae_CEC_cvfSTPB-xRW8RKozGYnt3BKpqPArRTozqkNuxQr2efOWRC6R0BDTA39rhRH0MXzOg"></script>
</head>
<body>
<div id="outer">
  <div id="header">
    <h1><a href="http://www.clanty.com/">Clanty</a></h1>
    <h2>Clanty</h2>
  </div>
</div>
      {% for apagetext in pagestext %}
        {% ifequal forloop.counter page %}
        <h2>From {{apagetext.first}} to {{apagetext.last}}</h2>
        {% endifequal %}
      {% endfor %}

    {% for term in terms %}
    {% if forloop.first %}
     <table class="tablelist">
      <tr class="rowH"><th>Original</th><th>Spanish</th></tr>      
    {% endif %}
      <tr class="{{forloop.counter|zebra}}">
        <td><span class="prefixword">{{term.prefix}}</span>{{term.word}}</td>
        <td>{{term.translate}}</td>
      </tr>
      {% ifnotequal term.translate2 '' %}<tr class="meaning2"><td></td><td>{{term.translate2}}</td></tr>{% endifnotequal %}
      {% ifnotequal term.translate3 '' %}<tr class="meaning3"><td></td><td>{{term.translate3}}</td></tr>{% endifnotequal %}

{% if forloop.last %}
      </table>
{% endif %}
     {%endfor%}
